package com.qyhl.webtv.module_user.shop;

import com.qyhl.webtv.commonlib.entity.user.ShoppingOrderBean;

import java.util.List;

public class ShopExchangePresenter implements ShopExchangeContract.ShopExchangePresenter {
    private ShopExchangeContract.ShopExchangeView mView;
    private ShopExchangeModel mModel;

    public ShopExchangePresenter(ShopExchangeContract.ShopExchangeView mView) {
        this.mView = mView;
        this.mModel = new ShopExchangeModel(this);
    }

    @Override
    public void getList(String phone, String page) {
        mModel.getList(phone, page);
    }

    @Override
    public void setList(List<ShoppingOrderBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
